﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BuyRecord.aspx.cs" Inherits="AlbonWeb.Manager.OrderManager.BuyRecord" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Buy Record</title>
    <script src="/js/ADS.js" type="text/javascript"></script>
    <script src="/js/content.js" type="text/javascript"></script>
    <link href="/css/Content.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        html, body, form
        {
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" defaultbutton="btnSearch">
    <div class="rod_left">
    </div>
    <div class="rod_right">
    </div>
    <div class="main_contented">
        <div class="right_top">
            <span class="scon_word">Order>>Cloth Buy</span>
        </div>
        <table width="750" border="0" class="table_add" cellpadding="0" cellspacing="0">
            <tr class="content_title">
                <td colspan="2">
                Buy Record(Wait/Receive/OOS)
                    
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td style="width: 10%" align="right">
                    Cloth Status:
                </td>
                <td>
                    <asp:DropDownList ID="ddlStatus" runat="server">
                    </asp:DropDownList>
                    Cloth Company:<asp:DropDownList ID="ddlCompany" runat="server">
                    </asp:DropDownList>
                    Cloth REF#:<asp:TextBox ID="clothRef" runat="server"></asp:TextBox>
                    Order REF#:<asp:TextBox ID="orderRef" runat="server"></asp:TextBox>
                    <asp:ImageButton ID="btnSearch" ImageUrl="/images/search.gif" runat="server" OnClick="btnSearch_Click" />
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td colspan="2">
                    <table width="90%" cellpadding="0" cellspacing="0" border="1" bordercolor="#AFDA8C"
                        class="tb_list">
                        <asp:Repeater ID="repMain" runat="server">
                            <HeaderTemplate>
                                <tr class="tr_list_head">
                                    <td>
                                    </td>
                                    <td>
                                        Cloth REF#
                                    </td>
                                    <td>
                                        Order REF#
                                    </td>
                                    <td style="width: 10%">
                                        Company
                                    </td>
                                    <td>
                                        Cloth No
                                    </td>
                                    <td>
                                        Size
                                    </td>
                                    <td>
                                        Width
                                    </td>
                                    <td>
                                        Price
                                    </td>
                                    <td>
                                        Status
                                    </td>
                                </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="tr_list_content">
                                    <td>
                                        <input type="checkbox" class="check_item" value='<%#Eval("ID")%>' />
                                    </td>
                                    <td>
                                        <%#Eval("clothRefNo") %>
                                    </td>
                                    <td>
                                        <%#Eval("orderRefNo") %>
                                    </td>
                                    <td>
                                        <%#Eval("clothCompany") %>
                                    </td>
                                    <td>
                                        <%#Eval("clothNo") %>
                                    </td>
                                    <td>
                                        <%#Eval("clothSize")%>
                                    </td>
                                    <td>
                                        <%#Eval("width") %>
                                    </td>
                                    <td>
                                        <%#string.Format("{0:0.00}",decimal.Parse(Eval("clothPrice").ToString())) %>
                                    </td>
                                    <td>
                                        <%#Eval("statusName")%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                        <tr class="netpager">
                            <td>
                                <input type="checkbox" class="check_all" />
                                <asp:HiddenField ID="hfchecklist" runat="server" />
                            </td>
                            <td align="left">
                                Move To:
                                <asp:DropDownList ID="ddlMoveTo" runat="server">
                                </asp:DropDownList>
                                <asp:Button ID="btnMove" runat="server" Text="Move" OnClick="btnMove_Click" class="checklist" />
                            </td>
                            <td colspan="7">
                                  <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="First" LastPageText="Last"
                                    NextPageText="Next" PageIndexBoxType="DropDownList" PrevPageText="Prev" ShowBoxThreshold="15"
                                    ShowCustomInfoSection="Left" ShowMoreButtons="False" SubmitButtonText="Go" TextAfterPageIndexBox=""
                                    TextBeforePageIndexBox="Goto" CustomInfoClass="pageinfo" CustomInfoHTML="Current Page : %CurrentPageIndex%    Total Page: %PageCount%"
                                    CustomInfoSectionWidth="30%" CustomInfoTextAlign="Left" OnPageChanging="AspNetPager1_PageChanging"
                                    PageSize="11">
                                </webdiyer:AspNetPager>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td colspan="2">
                    &nbsp;
                </td>
                <td align="right">
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
